package org.example.demo;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class DemoA {
    // @Scheduled(cron = "*/2 * * * * ?")
    public void a(){
        log.info("我是DemoA类的a方法");
    }
    @Scheduled(cron = "0 24 16 * * ?")
    public void b(){
        log.info("我是DemoA类的b方法");
    }
}
